package com.ibm.datamodel.timeseries;

public class SchemaField {
	private final String name;
	private final byte dataType;
	private final FieldType fieldType;
	
	public static enum FieldType{
		NORMAL, TIMESTAMP, TS_KEY
	}

	public SchemaField(String name, byte dataType, FieldType fieldType) {
		this.name = name;
		this.dataType = dataType;
		this.fieldType = fieldType;
	}
	
	public String getName() {
		return name;
	}

	public byte getDataType() {
		return dataType;
	}

	public FieldType getFieldType() {
		return fieldType;
	}

	@Override
	public String toString() {
		return "{\"SchemaField\":{\"name\":\"" + name + "\", \"dataType\":\""
				+ dataType + "\", \"fieldType\":\"" + fieldType + "\"}}";
	}
	
}
